<!-- 富文本编辑器 -->
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>


<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <?php  
                  if($ac == 1){
                     $acname  = '新增信息';  
                     $posturl =  U('Column/doaddarclist');
                     $data['images']= '__PUBLIC__/Admin/assets/img/stock/2.jpg';
                  }else if($ac==2){
                     $acname  = '新增信息';  
                     $posturl =  U('Column/doupdatearclist');
                  }
                ?>
                <span class="panel-title">{$acname}</span>
              </div>
              <div class="admin-form theme-primary  center-block" style="padding-bottom: 175px; margin-top:30px; width:90%">
              <div class="panel heading-border panel-primary">
                <form method="post" action="{$posturl}"  >
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 信息项 </span></div>
                    <!-- .section-divider -->
                    <input type="hidden" value="{$data['id']}" name="aid"> 
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="title" id="title" class="gui-input" placeholder="此处输入标题：必填" value="{$data['title']}">
                        </label>
                        <label  class="button btn-primary w240" >信息标题：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field select " style="width:60%" >
                        <select id="cid" name="cid">
                            {$select}
                        </select>
                        <i class="arrow double"></i>
                      </label>
                        <label  class="button btn-primary w240 ">所属栏目：</label>
                      </div>
                    </div>


                    <div class="row">
                      <div class="col-md-4">
                        <div class="section">
                           <span class="fileupload-preview thumbnail m5 pull-left">
                            <img src="{$data['images']}" class="img-responsive" id="slt" title="stairs-to_soul.jpg">
                          </span>
                        </div>
                      </div>
                      <div class="col-md-6 hidden-xs">
                        <div class="section">
                          <p class="lead">这里展示产品的缩略图！</p>
                          <label class="field prepend-icon file">
                            <span class="button btn-primary">选择文件</span>
                            <input type="file" class="gui-file" style="width:0px;" name="file2" id="file2" onchange=" ajaxuploadImg('file2','uploader2','{:U('Ajax/uploadImg')}','slt');">
                            <input type="text" class="gui-input" name="images" id="uploader2"  value="{$data['images']}">
                            <label class="field-icon"><i class="fa fa-upload"></i></label>
                          </label>
                          <label class="block mt15 switch switch-primary">
                         
                            <input type="checkbox" name="iscommend" id="t1"  <?php if($data['iscommend']){ echo "checked" ;} ?>>
                            <label for="t1" data-on="YES" data-off="NO"></label>
                            <span>是否推荐</span>
                          </label>

                          <label class="block mt15 switch switch-primary">
                            <div class="smart-widget sm-left sml-120">
                              <label  class="field prepend-icon ">
                                <input type="text" name="sort" id="sort" class="gui-input" placeholder="输入序号" value="{$data['sort']}">
                              </label>
                              <label  class="button btn-primary w120" >排序：</label>
                            </div>
                          </label>
                        </div>
                      </div>
                    </div>
                    </br>
					
                


					<div class="section ">

                    <div class="row">
                      <div class="col-md-6">
                        <div class="smart-widget sm-left sml-120">
                        <label class="field select " style="width:80%" >
                        <select id="tid" name="tid">
                            {$select2}
                        </select>
                        <i class="arrow double"></i>
                      </label>
                        <label  class="button btn-primary w240 ">对应栏目：</label>
                      </div>
                      </div>

                        <div class="col-md-6">
                   
                      <div class="smart-widget sm-left sml-120">
                        <label class="field select " style="width:80%" >
                        <select id="fid" name="fid">
                            <option value="1" <php>if($data['fid'] == 1){ echo "selected" ;}</php>   >楼房小区供水案例</option>
                            <option value="2" <php>if($data['fid'] == 2){ echo "selected" ;}</php>   >厂矿企业供水案例</option>
                            <option value="3" <php>if($data['fid'] == 3){ echo "selected" ;}</php>   >商务办公供水案例</option>
                            <option value="4" <php>if($data['fid'] == 4){ echo "selected" ;}</php>   >小型供水案例</option>
                            <option value="5" <php>if($data['fid'] == 5){ echo "selected" ;}</php>   >农村城镇供水案例</option>
                            <option value="6" <php>if($data['fid'] == 6){ echo "selected" ;}</php>   >其它供水案例</option>
                        </select>
                        <i class="arrow double"></i>
                      </label>
                        <label  class="button btn-primary w240 ">所属类别：</label>
                      </div>
                   
                      </div> 
                    </div>

                    </div>









                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="keyword" id="keyword" class="gui-input" placeholder="此处输入关键词：选填" value="{$data['keyword']}">
                        </label>
                        <label  class="button btn-primary w240" >关键词：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="description" id="description" class="gui-input" placeholder="此处输入关键词：选填" value="{$data['description']}">
                        </label>
                        <label  class="button btn-primary w240" >描述：</label>
                      </div>
                    </div>

                    <div class="section">
                        <h3>栏目内容：</h3>
                        <textarea id="editor" style="height:300px;" name="content">{$data['content']}</textarea>
                    </div>

                     
                </div>
                   
                  <div class="panel-footer text-right">
                    <button type="submit" class="button btn-primary">提交</button>
                    <button type="reset" class="button btn-primary">清空</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>
        </div>
</div>

<script type="text/javascript">
   var ue = UE.getEditor('editor');
</script>